package com.lanou.renrenxin.tools;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * Created by zouhui on 16/3/3.
 */
public class FormatTime {
    public static String formatTime(long time){
        Date date = new Date(time);
        SimpleDateFormat sdformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//24小时制
        String lgTime = sdformat.format(date);
        return lgTime;
    }

    public static Long getSysTime(){
        Calendar calendar = Calendar.getInstance();
        return calendar.getTimeInMillis();
    }
}
